<?php

    $db = new Database();
if(isset($_POST['id'])){
    
    $id = $_POST['id'];
    $getTag = $db->query("SELECT * FROM tag WHERE fileID = '$id'", "array");
    foreach($getTag as $fetch)
    {
        $statusColor = $fetch['statusBlink'];
        
        ?>
        
        <script>
        //$('.picLarge').empty();
        //naglalagay lng ng span na piclarge
        $('.picLarge').append("<span class='tagged' id='<?php echo $fetch['id']; ?>' title='<?php echo $fetch['label'] ?>' style='border:2px solid #000;background-color: <?php echo substr($statusColor,0,strlen($statusColor)-4); ?>;color:white;cursor:pointer;top:<?php echo $fetch['top'] ?>px;left:<?php echo $fetch['getleft'] ?>px;position:absolute;width:<?php echo $fetch['width'] ?>px;height:<?php echo $fetch['height'] ?>px;'></span>");
        
        </script>
        <?php
    }
?>
<script>
    //alert("<?php echo $_POST['imgLoc'] ?>")
</script>
<?php
}elseif(isset($_POST['ids'])){
}
?>